Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change the block-dynamic-connections plugin to use a connection previewer instead of monkey patching #2190

Merged
merged 14 commits into from
Feb 5, 2024

Conversation

BeksOmega
Copy link
Contributor

@BeksOmega BeksOmega commented Feb 2, 2024

The basics

The details

Resolves

Fixes google/blockly#7204

Proposed Changes + Reasons

Change the dynamic connections plugin to use a connection previewer so that we don't have to patch the insertion marker manager anymore.

Test Coverage

Manually tested.

I did find one issue with deleting blocks (inputs don't get removed when you delete) which was exposed by the changes to saveState where we don't call finalizeConnections if the block is in the correct state. But this was only working because of how the advanced playground generates JSON on every workspace change. So I'm going to fix as a follow up.

Documentation

N/A

Additional Information

N/A

@BeksOmega BeksOmega requested a review from a team as a code owner February 2, 2024 23:29
@BeksOmega BeksOmega requested review from rachel-fenichel and removed request for a team February 2, 2024 23:29
@BeksOmega
Copy link
Contributor Author

@rachel-fenichel Ready for re-review =)

Copy link
Collaborator

@rachel-fenichel rachel-fenichel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have two nits and a naming question, but it's ready to go once you resolve those.

@BeksOmega BeksOmega merged commit 39332ee into google:rc/v10.4.0 Feb 5, 2024
8 checks passed
maribethb pushed a commit that referenced this pull request Feb 16, 2024
…previewer instead of monkey patching (#2190)

* feat: add pass through previewer

* fix: don't remove valid connections on saveExtraState

* fix: have connection previewer handle pending connections

* fix: have onPendingConnection ignore insertion markers

* chore: delete insertion marker monkey patch

* fixup

* chore: bump versions

* chore: fixup naming and docs

* chore: format

* chore: fix build

* chore: fixup type

* feat: make BasePreviewerConstructor optional

* chore: fix readme

* chore: PR nits
maribethb added a commit that referenced this pull request Feb 16, 2024
* fix: change the block-dynamic-connections plugin to use a connection previewer instead of monkey patching (#2190)

* feat: add pass through previewer

* fix: don't remove valid connections on saveExtraState

* fix: have connection previewer handle pending connections

* fix: have onPendingConnection ignore insertion markers

* chore: delete insertion marker monkey patch

* fixup

* chore: bump versions

* chore: fixup naming and docs

* chore: format

* chore: fix build

* chore: fixup type

* feat: make BasePreviewerConstructor optional

* chore: fix readme

* chore: PR nits

* feat!: update block-dynamic-connection to use blockly v10.4.1

---------

Co-authored-by: Beka Westberg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants